dynamic programming [closed]

Posted by shruti on Stack Overflow See other posts from Stack Overflow or by shruti
Published on 2010-03-28T12:32:38Z Indexed on 2010/03/28 12:43 UTC
Read the original article Hit count: 661

the input to this problem is a sequence S of integers(not necessarily positive). the problem is to find consecutive subsequence of S with maximum sum using dynamic programming. consecutive means that you are not allowed to skip numbers. for example: if the input was 12,-14,1,23,-6,22,-34,-13. the output would be 1,23,-6,22.

© Stack Overflow or respective owner

Related posts about homework

Related posts about dynamic-programming